﻿using System.ComponentModel.DataAnnotations;

namespace Shop.Model.Dto.Admin.NewProduct;

public class NewProductEditDto
{
    /// <summary>
    /// 
    /// </summary>
    public long Id { get; set; }
    
    /// <summary>
    /// 商品名
    /// </summary>
    [Required(ErrorMessage = "商品名不可为空")]
    public long Goods { get; set; }
    
    /// <summary>
    /// 含量
    /// </summary>
    [Required(ErrorMessage = "含量不可为空")]
    public decimal Content { get; set; }
    
    /// <summary>
    /// 容量
    /// </summary>
    [Required(ErrorMessage = "容量不可为空")]
    public int Spe { get; set; }
    
    /// <summary>
    /// 单位
    /// </summary>
    [Required(ErrorMessage = "单位不可为空")]
    public string Unit { get; set; }
    
    /// <summary>
    /// 图片
    /// </summary>
    [Required(ErrorMessage = "图片不可为空")]
    public string Img { get; set; }
    
    /// <summary>
    /// 标题
    /// </summary>
    [Required(ErrorMessage = "标题不可为空")]
    public string Title { get; set; }
    
    /// <summary>
    /// 是否删除
    /// </summary>
    [Required(ErrorMessage = "是否删除不可为空")]
    public bool IsDelete { get; set; }
}